home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr26
/
bbutils.zip
/
SHORTCUT.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-06-20
|
743b
|
25 lines
@Echo off
Echo ShortCut [C]opyWrong by ßronx ßomber in 1993
If %1!==! goto oops
if exist \dos\*.* goto start
md \dos
:start
set op=%prompt%
echo prompt cd $p > t1.bat
command /c t1 > t2.bat
echo @echo off > \dos\%1.bat
find /v "$" t2.bat | find /v "-" >> \dos\%1.bat
prompt=%op%
del t?.bat
Echo Now you will be able to type %1 at the DOS prompt to switch
Echo quickly into this subdirectory. Cool, eh?
goto end
:oops
Echo To create a shortcut command that will let you jump instantly into this
Echo subdirectory from any other directory, enter a shortcut name 8 or
Echo fewer characters long after the %0.
Echo So if you want to CD into this subdirectory by typing just HOT at
Echo the DOS prompt, enter %0 HOT.
:end